<?php

require_once("/../../../includes/controller/initialize.php"); 

if (!$session->is_logged_in()) { redirect_to("/public/index.php"); }


?>


<!Doctype html>
<html>
<head>
<title>Forbrukermakt</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="../stylesheet/style.css" type="text/css" rel="stylesheet"/>

<script src="../javascript/jquery.min.js"></script>


<script type="text/javascript">
    
var auto_refresh = setInterval(
function ()
{
$('#feed').load('templates/feed.php').fadeIn("slow");
}, 10000); // refresh every 10000 milliseconds



</script>



</head>

    <body>
        
       


    <!-- Define Header -->
        <header>

             <?php include('templates/header.php')
             // also includes searchform.php?>
            
        
        </header>
    <!-- End Header -->
    <!-- Define Navigation/Menu -->

        <nav id="mainmenu">
   
             <?php include('templates/nav.php')?>
    
        </nav>
    <!-- End Navigation -->
    <!-- Main content area -->
    <section id="content">
        
        
                    
            
            <?php   
                    if(isset($_POST['search']) || isset($_GET['sort'])){
                        include('/templates/result.php');
                    }else{
                         include('templates/comment.php');
                         include('templates/feed.php');
                    }                                  ?>
        
       
        
   
    </section>
    <!-- End of Main content area -->

    

    <!-- Sidebar -->
        <aside>
        
        </aside>
    <!-- End Sidebar -->
    <!-- Footer -->
    <footer>
  

 <?php include('templates/footer.php')?>

    </footer>
     
          
    <!-- End of Footer -->
        
        <!-- End of Total--->
   </body>
 </html>